﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyLeft.aspx.cs" Inherits="HZ.Supervise.Web.PageControl.CompanyLeft" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Style/s-type.css" />
    <link rel="stylesheet" type="text/css" href="../Style/style.css" />

    <script src="../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../scripts/DynaForm.js" type="text/javascript"></script>

    <script src="../scripts/GenUtils.js" type="text/javascript"></script>

    <script type="text/javascript" language="JavaScript">

        function logout() {
            if (confirm("确定要退出系统吗？")) {
                location.replace("../Common/logout.aspx");
            }
        }
        function IFrameReSize(iframename) {
            var pTar = document.getElementById(iframename);
            if (pTar) {  //ff
                if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight) {
                    pTar.height = pTar.contentDocument.body.offsetHeight;
                } //ie
                else if (pTar.Document && pTar.Document.body.scrollHeight) {
                    pTar.height = pTar.Document.body.scrollHeight;

                }
            }
        }
        //iframe宽度自适应
        function IFrameReSizeWidth(iframename) {
            var pTar = document.getElementById(iframename);
            if (pTar) {  //ff
                if (pTar.contentDocument && pTar.contentDocument.body.offsetWidth) {
                    pTar.width = pTar.contentDocument.body.offsetWidth - 100;
                }  //ie
                else if (pTar.Document && pTar.Document.body.scrollWidth) {
                    pTar.width = pTar.Document.body.scrollWidth - 100;
                }
            }
        }

        function seturl(sessionid) {
            CallFunc('../Secondphase/ReportCompany/ReportOfCompanyFirstLevel.aspx?sessionid=' + sessionid, 'FORM', null, 'Main');
            //            $("#ifmain").attr("src", "../Secondphase/ReportCompany/ReportOfCompanyFirstLevel.aspx?sessionid=" + sessionid);
        }
        //回车查询  by张雄  2011.5.11
        function document.onkeydown() {
            //使用document.getElementById获得按钮对象
            var btn = document.getElementById('<%=ImageButton1.ClientID %>');
            if (event.keyCode == 13) {
                btn.click();
                event.returnValue = false;
            }
        }
    </script>
   


</head>
<body>
<script type="text/javascript">
    function a(obj) {
        var o = document.getElementById("gvwselect");
        var a = o.getElementsByTagName("a");
        for (i = 0; i < a.length; i++) {
            a[i].style.fontWeight = "normal";
        }
        obj.getElementsByTagName("a")[0].style.fontWeight = "bold";
    }
</script>
    <form id="form1" runat="server">
  
    <div id="main">
        <div class="left">
            <div class="left1">
                <h1 class="leftTitle1">
                    欢迎您！</h1>
                <ul>
                    <li>
                        <asp:Label ID="lblCurrentUser" runat="server" Text="Label"></asp:Label></li>
                    <li>当前角色：
                        <asp:Label ID="lblCurrentRole" runat="server" Text="Label"></asp:Label></li>
                </ul>
            </div>
            <div class="left2">
                <h1 class="leftTitle2">
                    检索</h1>
                <ul>
                    <li>
                        
                        <asp:RadioButtonList ID="rblcompanytype" runat="server" RepeatDirection="Horizontal"
                            CellPadding="1" CellSpacing="1" AutoPostBack="True" OnSelectedIndexChanged="rblcompanytype_SelectedIndexChanged"
                            Height="28px" Width="154px" >
                            <asp:ListItem Value="0" Text="生产企业"  ></asp:ListItem>
                            <asp:ListItem Value="2" Text="配送企业" Selected="True" ></asp:ListItem>
                        </asp:RadioButtonList>
                    </li>
                    <li>
                        <asp:TextBox ID="txtname" runat="server" CssClass="souSuo" Height="19px" Width="132px"></asp:TextBox>
                        <asp:ImageButton ID="ImageButton1" ImageAlign="Right" runat="server" OnClick="btnQuery_Click"
                            ImageUrl="~/Images/ModalImageAh_New/souSuoBtn.png" ToolTip="点击查询符合条件的数据" />
                    </li>
                </ul>
            </div>
            <div class="left3">
                <h1>
                    <asp:Label ID="lbname" runat="server" Text="企业名称" CssClass="leftTitle3"></asp:Label>
                </h1>
                <asp:Label ID="Label1" runat="server" Text="" Visible="false"></asp:Label>
                <asp:GridView ID="gvwselect" runat="server" AutoGenerateColumns="False"
                    Width="100%" OnRowDataBound="gvwselect_RowDataBound" EmptyDataText="无符合条件的数据!"
                    ShowHeader="false" onrowcreated="gvwselect_RowCreated">
                    <Columns >
                        <asp:BoundField DataField="CompanyName" HeaderText="企业名称" ItemStyle-HorizontalAlign="Center">
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" ></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" ShowPageSizeBox="false" ShowMoreButtons="true"
                    OnPageChanged="AspNetPager1_PageChanged" NumericButtonCount="3" PageSize="7"
                    ReverseUrlPageIndex="false" ShowDisabledButtons="False" SkinID="gridviewLeft"
                    ShowFirstLast="False" ShowPrevNext="False" CustomInfoHTML="" CustomInfoStyle="display:none"
                    Wrap="False">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
